package com.ylr.config.common.dto.mapping;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-03 17:24:45
 * className: MappingDto 键值对映射数据封装类
 * version: 1.0
 * description:
 *  `@JsonInclude(JsonInclude.Include.NON_NULL)`: json序列化时，不处理为空的属性
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MappingDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 配置名称
     */
    private String mapName;
    /**
     * 键
     */
    private String mapKey;
    /**
     * 值
     */
    private String mapValue;
    /**
     * 排序等级
     */
    private Integer sort;
    /**
     * 状态[0-可用 1-停用]
     */
    private Integer status;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 更新用户
     */
    private String updateUser;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建用户
     */
    private String createUser;
    /**
     * 备注
     */
    private String remark;

}
